package com.apobates.forum.toro.core;

/**
 * SpaceMatcher匹配的结果
 * @author xiaofanku@live.cn
 * @since 20220829
 */
public class SpaceMatcheResult {
    private int start;
    private int finish;
    private String value;
    private String headSymbol;
    private String tailSymbol;

    public SpaceMatcheResult(int start, int finish, String value) {
        this.start = start;
        this.finish = finish;
        this.value = value;
    }

    public SpaceMatcheResult(int start, int finish, String value, String headSymbol, String tailSymbol) {
        this.start = start;
        this.finish = finish;
        this.value = value;
        this.headSymbol = headSymbol;
        this.tailSymbol = tailSymbol;
    }

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public int getFinish() {
        return finish;
    }

    public void setFinish(int finish) {
        this.finish = finish;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getHeadSymbol() {
        return headSymbol;
    }

    public void setHeadSymbol(String headSymbol) {
        this.headSymbol = headSymbol;
    }

    public String getTailSymbol() {
        return tailSymbol;
    }

    public void setTailSymbol(String tailSymbol) {
        this.tailSymbol = tailSymbol;
    }

    @Override
    public String toString() {
        return "SpaceMatcheResult{" +
                "start=" + start +
                ", finish=" + finish +
                ", value='" + value + '\'' +
                ", headSymbol='" + headSymbol + '\'' +
                ", tailSymbol='" + tailSymbol + '\'' +
                '}';
    }
}
